package cn.anosi.service.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.anosi.entity.test.Student;
import cn.anosi.repository.test.StudentRepository;
import cn.anosi.service.base.impl.BaseServiceImpl;

import java.io.Serializable;

@Service
public class StudentService extends BaseServiceImpl<Student>{

	@Autowired
	protected StudentService(StudentRepository studentRepository) {
		super(studentRepository);
	}

	@Autowired
	protected StudentRepository studentRepository;

	public Student findOne(Integer id){
		return studentRepository.findOne(id);
	}
}
